/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package games;

/**
 *
 * @author Mikael
 */
public class MatchKamisadoState extends KamisadoState {

    private final Heuristic<KamisadoState> heuristic1;
    private final Heuristic<KamisadoState> heuristic2;

    public MatchKamisadoState(Heuristic<KamisadoState> heuristic1, Heuristic<KamisadoState> heuristic2) {
        this.heuristic1 = heuristic1;
        this.heuristic2 = heuristic2;

    }

    @Override
    public int evaluate(boolean maximize) {

        return maximize ? heuristic1.evaluate(this) : heuristic2.evaluate(this);

    }
}
